<?php
	include_once ('./bootstrap.php');

	
	
					Doctrine_Core :: loadModels('../models');
					$arrayCour = Doctrine_Core :: getTable ( 'Cours' )->findBy('cours_id',$_POST['cours_id'],null);							
			/*	    $cour = $arrayCour->getData();	
					$cours = $cour[0]->getData();*/
						
					
	$arrayCour[0]['cours_jour'] = $_POST['jours'];
	$arrayCour[0]['cours_heure'] = $_POST['heure'];
	$arrayCour[0]['ad_id'] =  $_POST['professeur'] ;
	
	$arrayCour[0]->save();

echo "Modifications prisent en compte."
	//$arrayCours = Doctrine_Core :: getTable ( 'Cours' )->findAll(null);

?>